/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entity.state.user;

import entity.User;

/**
 *
 * @author andreas
 */
public class BlockedState implements UserState {

    public BlockedState() {
    }

    @Override
    public String toString() {
        return "blocked";
    }

    public void blockUser(User user) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void activateUser(User user) {
        user.setUserState(new ActiveState());
    }

    public void blackList(User user) {
        user.setUserState(new BlackListedState());
    }

}